﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AddContact.aspx.cs" Inherits="AB.ServiceDirectory.Design.AContact.AddContactTest"
    EnableEventValidation="false" %>

<%@ Register TagPrefix="wuc" TagName="ContactLookupPopup" Src="~/WebUserControls/Lookup/ContactLookupUserControl.ascx" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
    <h2>
        Add Contact</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <%--    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>--%>
    <div class="grid740 simplebox">
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelFirstName" runat="server" CssClass="st-labeltext" Text="First Name"
                    AssociatedControlID="TextBoxFirstName">
                    <asp:RequiredFieldValidator ControlToValidate="TextBoxFirstName" ID="TextBoxFirstNameRequired"
                        runat="server" ErrorMessage="*" ForeColor="red" SetFocusOnError="true"></asp:RequiredFieldValidator>
                </asp:Label>
                <asp:TextBox ID="TextBoxFirstName" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelManageName" runat="server" Text="Manager Name" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxManagerName" runat="server" Width="175px" CssClass="st-forminput st-disable"
                    Enabled="False" ReadOnly="True"></asp:TextBox>
                <asp:LinkButton ID="LinkButtonLookup" runat="server" OnClick="LinkButtonLookup_Click"
                    CausesValidation="False" Text="Lookup" />
                <asp:HiddenField ID="HiddenFieldManagerID" runat="server" />
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelSurname" runat="server" Text="SurName" CssClass="st-labeltext">
                    <asp:RequiredFieldValidator ControlToValidate="TextBoxSurname" ID="RequiredFieldValidator1"
                        runat="server" ErrorMessage="*" ForeColor="red" SetFocusOnError="true"></asp:RequiredFieldValidator>
                </asp:Label>
                <asp:TextBox ID="TextBoxSurname" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelContactType" runat="server" Text="Contact Type" CssClass="st-labeltext">
                    <asp:RequiredFieldValidator ControlToValidate="DropDownListContactType" ID="RequiredContactType"
                        runat="server" ErrorMessage="*" ForeColor="red" SetFocusOnError="true"></asp:RequiredFieldValidator>
                </asp:Label>
                <asp:DropDownList ID="DropDownListContactType" CssClass="level2" runat="server" DataTextField="ContactTypeName"
                    DataValueField="ContactTypeId">
                </asp:DropDownList>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelKnowAs" runat="server" Text="Know As" CssClass="st-labeltext"
                    Height="16px"></asp:Label>
                <asp:TextBox ID="TextBoxKnowAs" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelBestContact" runat="server" Text="Best Contact Method" CssClass="st-labeltext"></asp:Label>
                <asp:DropDownList ID="DropDownListBestMethod" CssClass="level2" runat="server" DataTextField="BestContactMethodName"
                    DataValueField="BestContactMethodId">
                </asp:DropDownList>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelOffice" runat="server" Text="Office Phone" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxOfficePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelJobRole" runat="server" Text="Rob Role" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxJobRole" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelMobilePhone" runat="server" Text="Mobile Phone" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxMobilePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelWorkBase" runat="server" Text="WorkBase" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxWorkBase" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelHomePhone" runat="server" Text="ST Home Phone" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxHomePhone" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div>
            <div class="half">
                <asp:Label ID="LabelJobTitle" runat="server" Text="Job Title" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxJobTitle" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox></div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelEmailAddress" runat="server" Text="Email Address" CssClass="st-labeltext"></asp:Label>
                <asp:TextBox ID="TextBoxEmailAddress" runat="server" Width="180px" CssClass="st-forminput"></asp:TextBox>
            </div>
            <div class="half">
                <asp:Label ID="LabelIsActive" runat="server" Text="Is Active ?" CssClass="st-labeltext"></asp:Label>
                <asp:CheckBox ID="CheckBoxIsActive" runat="server" /></div>
            <div class="clear">
            </div>
        </div>
        <div class="button-box">
            <asp:Button ID="ButtonSave" CssClass="st-button" runat="server" Text="Save" OnClick="ButtonSave_Click" />
            <asp:Button ID="ButtonBack" CssClass="st-clear" runat="server" Text="Back" OnClick="ButtonBack_Click"
                CausesValidation="False" />
        </div>
    </div>
    <wuc:ContactLookupPopup runat="server" ID="ContactLookupPopup" MaximumRows="5" HiddenFieldResultID="HiddenFieldManagerID"
        TextBoxResultID="TextBoxManagerName" />
    <%--        </ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>
